package com.jxc.model.po;

/***********************************************************************
 * Module:  OrderReturnlist.java
 * Author:  Tino
 * Purpose: Defines the Class OrderReturnlist
 ***********************************************************************/

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 进货退货单
 * 
 * @pdOid d9f2b552-a8c1-4775-9488-47696c8bb0f0
 */
@Entity
@Table(name = "RKGL_ORDERRETURNLIST")
public class OrderReturnlist extends IdEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8157218124677840747L;
	/**
	 * 日期
	 * 
	 * @pdOid 784b06e6-a80c-4855-a95c-942f3fdf91a7
	 */
	private Date date;
	/**
	 * 单号
	 * 
	 * @pdOid 3ee81aec-a1f0-4303-bafc-16ccbbb75fb7
	 */
	private String serial;
	/**
	 * 营业员
	 * 
	 * @pdOid e86af7f7-b46c-4985-8a92-9b8cf301d5fa
	 */
	private User user;
	/**
	 * 仓库
	 * 
	 * @pdOid d7179393-d965-41f1-aa57-77cba1ebed2d
	 */
	private Repertory repertory;
	/**
	 * 退款总额
	 * 
	 * @pdOid 34ee652f-f451-4846-b9b6-fd16b391b535
	 */
	private Double total;
	/**
	 * 备注
	 * 
	 * @pdOid ed63c26a-f104-41b8-a16f-e84dd22e00e9
	 */
	private String remark;
	/**
	 * 是否删除
	 */
	private Boolean isDeleted;
	/**
	 * 退积分数
	 */
	private Integer returnPoint;
	

	@Column(name = "TOTAL", length = 10, precision = 2)
	public Double getTotal() {
		return total;
	}

	public void setTotal(Double total) {
		this.total = total;
	}

	@Column(name = "DATE")
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	@Column(name = "SERIAL")
	public String getSerial() {
		return serial;
	}

	public void setSerial(String serial) {
		this.serial = serial;
	}

	@ManyToOne
	@JoinColumn(name = "USER_ID")
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@ManyToOne
	@JoinColumn(name = "REPERTORY_DI")
	public Repertory getRepertory() {
		return repertory;
	}

	public void setRepertory(Repertory repertory) {
		this.repertory = repertory;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Column(name = "ISDELETED")
	public Boolean getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Boolean isDeleted) {
		this.isDeleted = isDeleted;
	}
	@Column(name = "RETURN_POINT")
	public Integer getReturnPoint() {
		return returnPoint;
	}

	public void setReturnPoint(Integer returnPoint) {
		this.returnPoint = returnPoint;
	}

}